package priv.pfz.raft.peer.model;

import lombok.Getter;
import lombok.Setter;
import priv.pfz.raft.common.ToString;
import priv.pfz.raft.peer.enums.OperateType;

/**
 * @author pengfangzhou
 * @date 2022/2/3 18:15
 */
@Getter
@Setter
public class LogEntry extends ToString {
    private int term;
    private int index;
    private OperateType operateType;
    private Integer value;

    public LogKey getLogKey() {
        return new LogKey(term, index);
    }
}
